package com.zy.swagger.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * (表t_request_record)ORM实体对象
 *
 * @author ZY
 * @date 2021-04-24 20:13:47
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_request_record")
public class RequestRecord implements Serializable {

    private static final long serialVersionUID = -77653729565733513L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    /**
     * 应用ID
     */
    private Integer appId;

    /**
     * 接口ID
     */
    private Integer interfaceId;

    /**
     * 请求URL
     */
    private String requestUrl;

    /**
     * 请求方式
     */
    private String method;

    /**
     * 请求头
     */
    private String header;

    /**
     * 请求参数
     */
    private String params;

    /**
     * 请求返回数据
     */
    private String resp;

    /**
     * 请求发起人ID
     */
    private Integer userId;

    /**
     * 状态 0.失败 1.成功
     */
    private Integer status;

    /**
     * 记录创建时间
     */
    private Date createTime;

    /**
     * 记录更新时间
     */
    private Date updateTime;

}